package org.example.elm_xiangmu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.elm_xiangmu.po.Business;

import java.util.List;

@Mapper
public interface BusinessMapper {
    @Select("select * from business where orderTypeId = #{orderTypeId} ")
    List<Business> list(Integer orderTypeId);

    @Select("select * from business where businessId = #{businessId} ")
    Business getById(Integer businessId);

    @Select("select * from business")
    List<Business> getAllBusiness();
}
